Integrand size = 17, antiderivative size = 45 \[ \int x \sec ^3\left (a+2 \log \left (c x^i\right )\right ) \, dx=\frac {e^{i a} \left (c x^i\right )^{2 i} x^2}{\left (1+e^{2 i a} \left (c x^i\right )^{4 i}\right )^2} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {4605, 4601, 267} \[ \int x \sec ^3\left (a+2 \log \left (c x^i\right )\right ) \, dx=\frac {e^{i a} x^2 \left (c x^i\right )^{2 i}}{\left (1+e^{2 i a} \left (c x^i\right )^{4 i}\right )^2} \]
[In]
[Out]
Rule 267
Rule 4601
Rule 4605
Rubi steps \begin{align*} \text {integral}& = -\left (\left (i \left (c x^i\right )^{2 i} x^2\right ) \text {Subst}\left (\int x^{-1-2 i} \sec ^3(a+2 \log (x)) \, dx,x,c x^i\right )\right ) \\ & = -\left (\left (8 i e^{3 i a} \left (c x^i\right )^{2 i} x^2\right ) \text {Subst}\left (\int \frac {x^{-1+4 i}}{\left (1+e^{2 i a} x^{4 i}\right )^3} \, dx,x,c x^i\right )\right ) \\ & = \frac {e^{i a} \left (c x^i\right )^{2 i} x^2}{\left (1+e^{2 i a} \left (c x^i\right )^{4 i}\right )^2} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(127\) vs. \(2(45)=90\).
Time = 0.12 (sec) , antiderivative size = 127, normalized size of antiderivative = 2.82 \[ \int x \sec ^3\left (a+2 \log \left (c x^i\right )\right ) \, dx=-\frac {\sec ^2\left (a+2 \log \left (c x^i\right )\right ) \left (\left (1+2 x^4\right ) \cos \left (a+2 \log \left (c x^i\right )-2 i \log (x)\right )+i \left (1-2 x^4\right ) \sin \left (a+2 \log \left (c x^i\right )-2 i \log (x)\right )\right ) \left (\cos \left (2 \left (a+2 \log \left (c x^i\right )-2 i \log (x)\right )\right )+i \sin \left (2 \left (a+2 \log \left (c x^i\right )-2 i \log (x)\right )\right )\right )}{4 x^4} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.17 (sec) , antiderivative size = 209, normalized size of antiderivative = 4.64
\[\frac {x^{2} c^{2 i} \left (x^{i}\right )^{2 i} {\mathrm e}^{-\pi \,\operatorname {csgn}\left (i x^{i}\right ) \operatorname {csgn}\left (i c \,x^{i}\right )^{2}+\pi \,\operatorname {csgn}\left (i x^{i}\right ) \operatorname {csgn}\left (i c \,x^{i}\right ) \operatorname {csgn}\left (i c \right )+\pi \operatorname {csgn}\left (i c \,x^{i}\right )^{3}-\pi \operatorname {csgn}\left (i c \,x^{i}\right )^{2} \operatorname {csgn}\left (i c \right )+i a}}{{\left (\left (x^{i}\right )^{4 i} c^{4 i} {\mathrm e}^{-2 \pi \,\operatorname {csgn}\left (i x^{i}\right ) \operatorname {csgn}\left (i c \,x^{i}\right )^{2}} {\mathrm e}^{2 \pi \,\operatorname {csgn}\left (i x^{i}\right ) \operatorname {csgn}\left (i c \,x^{i}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 \pi \operatorname {csgn}\left (i c \,x^{i}\right )^{3}} {\mathrm e}^{-2 \pi \operatorname {csgn}\left (i c \,x^{i}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 i a}+1\right )}^{2}}\]
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.22 \[ \int x \sec ^3\left (a+2 \log \left (c x^i\right )\right ) \, dx=-\frac {2 \, x^{4} e^{\left (3 i \, a + 6 i \, \log \left (c\right )\right )} + e^{\left (5 i \, a + 10 i \, \log \left (c\right )\right )}}{x^{8} + 2 \, x^{4} e^{\left (2 i \, a + 4 i \, \log \left (c\right )\right )} + e^{\left (4 i \, a + 8 i \, \log \left (c\right )\right )}} \]
[In]
[Out]
\[ \int x \sec ^3\left (a+2 \log \left (c x^i\right )\right ) \, dx=\int x \sec ^{3}{\left (a + 2 \log {\left (c x^{i} \right )} \right )}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 139 vs. \(2 (31) = 62\).
Time = 0.25 (sec) , antiderivative size = 139, normalized size of antiderivative = 3.09 \[ \int x \sec ^3\left (a+2 \log \left (c x^i\right )\right ) \, dx=\frac {{\left ({\left (\cos \left (a\right ) + i \, \sin \left (a\right )\right )} \cos \left (2 \, \log \left (c\right )\right ) - {\left (-i \, \cos \left (a\right ) + \sin \left (a\right )\right )} \sin \left (2 \, \log \left (c\right )\right )\right )} x^{2} e^{\left (6 \, \arctan \left (\sin \left (\log \left (x\right )\right ), \cos \left (\log \left (x\right )\right )\right )\right )}}{{\left (\cos \left (4 \, a\right ) + i \, \sin \left (4 \, a\right )\right )} \cos \left (8 \, \log \left (c\right )\right ) + 2 \, {\left ({\left (\cos \left (2 \, a\right ) + i \, \sin \left (2 \, a\right )\right )} \cos \left (4 \, \log \left (c\right )\right ) - {\left (-i \, \cos \left (2 \, a\right ) + \sin \left (2 \, a\right )\right )} \sin \left (4 \, \log \left (c\right )\right )\right )} e^{\left (4 \, \arctan \left (\sin \left (\log \left (x\right )\right ), \cos \left (\log \left (x\right )\right )\right )\right )} + {\left (i \, \cos \left (4 \, a\right ) - \sin \left (4 \, a\right )\right )} \sin \left (8 \, \log \left (c\right )\right ) + e^{\left (8 \, \arctan \left (\sin \left (\log \left (x\right )\right ), \cos \left (\log \left (x\right )\right )\right )\right )}} \]
[In]
[Out]
\[ \int x \sec ^3\left (a+2 \log \left (c x^i\right )\right ) \, dx=\int { x \sec \left (a + 2 \, \log \left (c x^{i}\right )\right )^{3} \,d x } \]
[In]
[Out]
Time = 29.92 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.02 \[ \int x \sec ^3\left (a+2 \log \left (c x^i\right )\right ) \, dx=\frac {x^2\,{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^{1{}\mathrm {i}}\right )}^{2{}\mathrm {i}}}{2\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^{1{}\mathrm {i}}\right )}^{4{}\mathrm {i}}+{\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\left (c\,x^{1{}\mathrm {i}}\right )}^{8{}\mathrm {i}}+1} \]
[In]
[Out]